﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OgilvyOne.UKNow.DALFactory;
using OgilvyOne.UKNow.Model;

namespace OgilvyOne.UKNow.BLL
{
   public class MemberIntersetsMappingBLL
    {
        public int LanguageID { get; set; }
        public MemberIntersetsMappingBLL(int langID)
        {
            this.LanguageID = langID;
        }
        
        /// <summary>
        /// 批量保存用户的爱好
        /// </summary>
        /// <param name="list"></param>
        /// <returns></returns>
        public bool Save(IList<MemberIntersetsMappingModel> list)
        {
            return MemberIntersetsMappingDALFactory.Create(LanguageID).Save(list);
        }

        public  void DeleteAll(int memberid)
        {
             MemberIntersetsMappingDALFactory.Create(LanguageID).DeleteAll(memberid);
        }
    }
}
